# File: ally_healer_aura.gd
# 路径：res://techs/ally/ally_healer_aura.gd
# 神圣结界：持续治疗周围友军
extends TechnologyResource
class_name AllyHealerAura

# 光环配置参数
var aura_radius = 200 # 作用范围（像素）
var hps_percent = 0.005 # 每秒治疗百分比
var update_interval = 1.0 # 治疗间隔（秒）

func _init() -> void:
	super()
	display_name = tr("tech.healer.aura.name")
	description = tr("tech.healer.aura.desc").format({
		"hps": Tools.percent_str(hps_percent),
		"range": aura_radius
	})
	GlobalSignal.gs_unit_created.connect(_on_unit_create)

# 为治疗者添加光环效果
func _on_unit_create(unit: Unit):
	#if unit is AllyHealer:
		#pass
	pass
